# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-gtts
pkgver=2.1.1
pkgrel=0
pkgdesc="A Python library and CLI tool to interface with Google Translate text-to-speech API"
url="https://github.com/pndurette/gTTS"
arch="noarch"
license="MIT"
depends="python3 py3-twine py3-gtts-token py3-click py3-beautifulsoup4"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-mock py3-testfixtures"
source="https://pypi.python.org/packages/source/g/gTTS/gTTS-$pkgver.tar.gz"
# Net required for tests
# Tests fail currently https://github.com/pndurette/gTTS/issues/220
options="!check"
builddir="$srcdir/gTTS-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="bbffe64ce8821a6fcc2f8146a07d1e06cda95b791544f1dcdf7cf687e9c39818fc299baca52e5c14306a1954ec7a9906638aea238334e7be9af45c96e9aebd7e  gTTS-2.1.1.tar.gz"
